﻿@model IEnumerable<NewRen.Models.Picture>
@using PagedList
@using PagedList.Mvc
@{
    ViewBag.Title = "系统图片管理";
    Layout = "~/Areas/Admin/Views/Shared/_AdminLayout.cshtml";
}

<div class="row wrapper border-bottom white-bg page-heading">
    <div class="col-lg-10">
        <h2>系统图片</h2>
        <ol class="breadcrumb">
            <li>
                <a href="/Admin/Home/Index">后台管理</a>
            </li>
            <li>
                <a>基础管理</a>
            </li>
            <li>
                <a href="#">系统图片</a>
            </li>
        </ol>
    </div>
</div>

<div class="wrapper wrapper-content  animated fadeInRight">
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox ">
                <div class="ibox-title">
                    <h5>系统图片管理 <small><a href="/Admin/Picture/Add">增加</a></small></h5>
                </div>
                <div class="ibox-content">
                    <table class="table">
                        <thead>
                            <tr>
                                <th>编号</th>
                                <th>图片名称</th>
                                <th>图片类型</th>
                                <th>图片路径</th>
                                <th>预览</th>
                                <th>添加时间</th>
                            </tr>
                        </thead>
                        <tbody>
                            @foreach (var item in Model)
                            {
                                <tr id="@item.ID">
                                    <td>@item.ID</td>
                                    <td>@item.Title</td>
                                    <td>@item.ContentType</td>
                                    <td>@item.Path</td>
                                    <td><img src="@item.Path" alt="@item.Title" width="60" height="60" /></td>
                                    <td>@item.Time</td>
                                    <td>
                                        <a href="javascript:deleteDialog('/Admin/Picture/Delete/@item.ID?sid=@ViewBag.SID',@item.ID);">删除</a>
                                    </td>
                                </tr>
                            }
                        </tbody>
                    </table>
                    @Html.PagedListPager((IPagedList)Model, page => Url.Action("Index", new { page = page}))
                </div>
            </div>
        </div>
    </div>
</div>




